{% extends 'WebQuant/base.html' %}
{% block title %}历史持仓{% endblock %}
{% block content %}
{% include 'WebQuant/deal_nav.html' %}
<div class="leftmask"></div>
	{% include 'WebQuant/deal_nav_left.html' %}
	<div class="right_cont" style="width:55%;">
		<div class="clouddeal" >
			<div class="daily_bottom">
				<div class="table_head">
					<div class="table_h1">日期</div>
					<div class="table_h2">股票代码</div>
					<div class="table_h3">收盘价（元）</div>
					<div class="table_h4">股数</div>
					<div class="table_h5">持仓（元）</div>
					<div class="table_h6">收益（元）</div>
				</div>
				<ul class="table_data">

				</ul>
				<div class="page"><p></p></div>
        	</div>
		</div>
	</div>

<script src="/static/WebQuant/js/mustache.min.js"></script>
<script src="/static/WebQuant/js/csrf.js"></script>
<script src="/static/WebQuant/js/page.js"></script>
<script src="/static/WebQuant/js/deal_daily.js"></script>
<script id="template" type="x-tmpl-mustache">
	[[#returnList]]
	<li>
		<div class="date">
			[[date]]
		</div>
		<div class="table_data_right">
			<div class="line">
				<div class="tables_d1">[[stockName]] <span>[[stockID]]</span></div>
				<div class="tables_d2">[[closePrice]]</div>
				<div class="tables_d3">[[stockNum]]</div>
				[[&positionValue]]
				[[&return]]
			</div>
			<div class="tables_d6">
				[总资产 <span>￥[[totalValue]]</span>	剩余金额<span>￥[[totalCash]]</span>	总交易成本<span>￥[[totalCommission]]</span>]
			</div>
		</div>
	</li>
	[[/returnList]]
</script>

{% endblock %}